﻿using System.Windows.Forms;

namespace EvoGame.Core.Components
{
	public partial class InputBox : Form
	{
		public InputBox()
		{
			InitializeComponent();
		}

		public static void Show(string prompt, string title, string defaultValue, out string output)
		{
			InputBox ib = new InputBox();
			ib.FormPrompt = prompt;
			ib.FormCaption = title;
			ib.DefaultValue = defaultValue;
			ib.ShowDialog();
			string s = ib.InputResponse;
			ib.Close();
			output = s;
		}
	}
}